/*
* 诊改报告 模块路由
* */
const layout = () => import('@/views/layout');
// 报告管理
const manageCard = () => import('@/views/report/reportManage/card');
const manageCardDetail = () => import('@/views/report/reportManage/cardDetail');
const evaluationList = () => import('@/views/report/reportManage/evaluationList');
// 我的报告
const card = () => import('@/views/report/myReport/card');
const cardDetail = () => import('@/views/report/myReport/cardDetail');
// 报告审核
const checkCard = () => import('@/views/report/reportCheck/card');
const checkCardDetail = () => import('@/views/report/reportCheck/cardDetail');
// 线下报告管理
const offlineReportCard = () => import('@/views/report/offlineReport/card.vue')
// const offlineCardDetail = () => import('@/views/report/offlineReport/cardDetail.vue')
const editStatusManage = () => import('@/views/report/reportManagement/editStatusManage.vue')
const maintenanceCycleManage = () => import('@/views/report/reportManagement/maintenanceCycleManage.vue')

export default {
    path: '/report',
    component: layout,
    name: 'reportIndex',
    meta: {
        title: '诊改报告',
        auth: true,
        id: ''
    },
    children: [
        {
            path: 'reportManage',
            component: layout,
            name: 'reportManage',
            meta: {
                title: '报告管理',
                auth: true,
                id: ''
            },
            children: [
                {
                    path: 'card/:type',
                    component: manageCard,
                    name: 'manageCard',
                    meta: {
                        title: '学校层',
                        auth: true,
                        id: ''
                    }
                },
                {
                    path: 'cardDetail/:type',
                    component: manageCardDetail,
                    name: 'manageCardDetail',
                    meta: {
                        title: '学校层',
                        auth: true,
                        id: ''
                    }
                },
                {
                    path: 'evaluationList',
                    component: evaluationList,
                    name: 'evaluationList',
                    meta: {
                        title: '评价列表',
                        auth: true,
                        id: ''
                    }
                }
            ]
        },
        {
            path: 'myReport',
            component: layout,
            name: 'myReport',
            meta: {
                title: '我的报告',
                auth: true,
                id: ''
            },
            children: [
                {
                    path: 'card/:type',
                    component: card,
                    name: 'card',
                    meta: {
                        title: '学校层',
                        auth: true,
                        id: ''
                    }
                },
                {
                    path: 'cardDetail/:type',
                    component: cardDetail,
                    name: 'cardDetail',
                    meta: {
                        title: '学校层',
                        auth: true,
                        id: ''
                    }
                }
            ]
        },
        {
            path: 'reportCheck',
            component: layout,
            name: 'reportCheck',
            meta: {
                title: '报告审核',
                auth: true,
                id: ''
            },
            children: [
                {
                    path: 'card/:type',
                    component: checkCard,
                    name: 'checkCard',
                    meta: {
                        title: '学校层',
                        auth: true,
                        id: ''
                    }
                },
                {
                    path: 'cardDetail/:type',
                    component: checkCardDetail,
                    name: 'checkCardDetail',
                    meta: {
                        title: '学校层',
                        auth: true,
                        id: ''
                    }
                }
            ]
        }, {
            path: 'offlineReport',
            component: layout,
            name: 'offlineReport',
            meta: {
                title: '线下报告管理',
                auth: true,
                id: ''
            },
            children: [
                {
                    path: 'card/:type',
                    component: offlineReportCard,
                    name: 'offlineReportCard',
                    meta: {
                        title: '学校层',
                        auth: true,
                        id: ''
                    }
                },
                {
                    path: 'card/XXBG_WH/:type',
                    component: offlineReportCard,
                    name: 'offlineReportCard',
                    meta: {
                        title: '学校层',
                        auth: true,
                        id: ''
                    }
                }
            ]
        }, {
            path: 'reportManagement',
            component: layout,
            redirect: 'editStatusManage',
            name: 'reportManagement',
            meta: {
                title: '报告管理',
                auth: true,
                id: ''
            },
            children: [
                {
                    path: 'maintenanceCycleManage',
                    component: maintenanceCycleManage,
                    name: 'maintenanceCycleManage',
                    meta: {
                        title: '维护周期管理',
                        auth: true,
                        id: ''
                    }
                },
                {
                    path: 'editStatusManage',
                    component: editStatusManage,
                    name: 'editStatusManage',
                    meta: {
                        title: '编辑状态管理',
                        auth: true,
                        id: ''
                    }
                }
            ]
        }
    ]
}
